// 6月28日（周六）
function format_date(value) {
  let time = new Date(parseInt(value));
  let y = time.getFullYear();
  // let m = (time.getMonth() + 1 + "").padStart(2, 0);
  let m = time.getMonth() + 1 + "";
  // let d = (time.getDate() + "").padStart(2, 0);
  let d = time.getDate() + ""
  let h = (time.getHours() + "").padStart(2, 0);
  let mm = (time.getMinutes() + "").padStart(2, 0);
  let s = (time.getSeconds() + "").padStart(2, 0);
  let arr = ["日", "一", "二", "三", "四", "五", "六"];
  let i = new Date().getDay();
  let weekday = "周" + arr[i];
  return `${m}月${d}日 (${weekday})`;
}
let timestr = format_date( new Date().getTime())
export const tablecolumns_config = [
  {
    name: "select",
    label: "",
    align: "center",
    field: "select",
    fixed: 1, width: 30, min: 30
  },
  {
    name: "expanded",
    label: "",
    align: "center",
    field: "expanded",
    fixed: 1, width: 30, min: 30
  },
  {
    name: "leagueName",
    label: "联赛",
    align: "left",
    field: 'leagueName',
    classes: 'panda-table-col-text-indent',
    fixed: 0, width: 150, min: 150
  },
  {
    name: "beginTime",
    label: timestr,
    align: "left",
    classes: 'panda-table-col-text-indent',
    field: "beginTime", fixed: 0, width: 180, min: 180
  },
  {
    name: "homeTeamNames",
    label: "主队名称",
    align: "left",
    classes: 'panda-table-col-text-indent',
    field: "homeTeamNames", fixed: 0, width: 200, min: 150
  },
  {
    name: "score",
    label: "比分",
    align: "left",
    classes: 'panda-table-col-text-indent',
    field: "score", fixed: 0, width: 100, min: 100
  },
  {
    name: "awayTeamNames",
    label: "客队名称",
    align: "left",
    classes: 'panda-table-col-text-indent',
    field: "awayTeamNames", fixed: 0, width: 200, min: 150
  },
  {
    name: "neutralGround",
    label: "中立场",
    align: "center",
    field: "neutralGround", fixed: 0, width: 100, min: 100
  },
  {
    name: "matchManageCode",
    label: "赛事ID",
    align: "left",
    classes: 'panda-table-col-text-indent',
    field: "matchManageCode", fixed: 0, width: 150, min: 100
  },
  { name: "liveOddSupport", label: "滚球", align: "center", field: "liveOddSupport", fixed: 0, width: 50, min: 50 },
  {
    name: "operateMatchStatus",
    label: "开盘情况",
    align: "left",
    classes: 'panda-table-col-text-indent',
    field: "operateMatchStatus", fixed: 0, width: 100, min: 100
  },
  { name: "operatorLiable", label: "操盘手", align: "left",  classes: 'panda-table-col-text-indent', field: "operatorLiable", fixed: 0, width: 100, min: 100 },
  {
    name: "action",
    label: "操作",
    field: "",
    align: "left",
    classes: 'panda-table-col-text-indent',
    fixed: 0, width: 200, min: 200
  },
  {
    name: "dataSourceCode",
    label: "数据商",
    align: "left",
    field: "dataSourceCode",
    classes: 'panda-table-col-text-indent',
    fixed: 0, width: 150, min: 150
  },
  {
    name: "relatedMatch",
    label: "竞品数据",
    align: "center",
    field: "relatedMatch",
    fixed: 0, width: 100, min: 100
  }
]